package com.star.uc.contract.constant;

/**
 * 用户常量池
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2023/11/16 15:07
 */
public class UserConstants {

    /**
     * 从安全性考虑，防止其他地方引用
     */
    private UserConstants() {
    }

    public static final Integer USER_TENANT_ID_IP_DEFAULT_COUNT = 10;

    /**
     * 分
     */
    public static final long MINUTE = 60;

    /**
     * 时
     */
    public static final long HOUR = 3600;

    /**
     * 天
     */
    public static final long DAY = 86400;

    /**
     * 验证码过期时间
     */
    public static final long USER_VALIDATE_CODE_EXPIRE = 300L;


    /**
     * 监控指标-短信发送量
     */
    public static final String METER_SMS_SEND_COUNT = "user.send-sms.count";

    /**
     * 监控指标-短信发送费用
     */
    public static final String METER_SMS_SEND_COST = "user.send-sms.cost";

    /**
     * 监控指标-邮件发送量
     */
    public static final String METER_EMAIL_SEND_COUNT = "user.send-email.count";

    /**
     * 监控指标-请求因各种原因失败
     */
    public static final String METER_REQUEST_FAIL = "user.request.fail";

    /**
     * 监控指标-TAG:原因
     */
    public static final String METER_TAG_REASON = "reason";

    public static final String ACCESS_TOKEN = "access_token";
}
